package com.students.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author caohanqing
 * @since 2022-07-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_localstorage")
@ApiModel(value="Localstorage对象", description="")
public class Localstorage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "本地储存表")
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "文件原名称")
    private String realName;

    @ApiModelProperty(value = "文件现名称")
    private String name;

    @ApiModelProperty(value = "后缀")
    private String suffix;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "下载次数")
    private int download;

    @ApiModelProperty(value = "文件大小")
    private String size;

    @ApiModelProperty(value = "创建者id")
    private int createBy;

    @ApiModelProperty(value = "更新者id")
    private int updateBy;

    @ApiModelProperty(value = "创建日期")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态(0正常/1禁用/2已删除)")
    private int status;

    @ApiModelProperty(value = "0:图片文件;1:普通文件;2:文件夹")
    private int cola;

    @ApiModelProperty(value = "上级id")
    private int superiorId;

    @ApiModelProperty(value = "子目录")
    @TableField(exist = false)
    private List<Localstorage> children;
}
